<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script src="https://cdn.jsdelivr.net/npm/vue@2.6.10/dist/vue.js"></script>
    <title>Document</title>
</head>
<body>
    <div id="app">
        <h1>{{msg}}</h1>
        <p>{{num}}</p>
        <img src="imgSrc" alt="">
        <img v-bind:src="imgSrc" alt="">
        <img :src="imgSrc" :alt="'你好'" width="200"> <!-- v-bind 的简写，可以只写冒号： -->
    </div>
    <script>
        const vm = new Vue({
            data() {
                return {
                    msg: 'Hello Vue',
                    num: 12,
                    imgSrc: "https://img1.baidu.com/it/u=1966616150,2146512490&fm=253&fmt=auto&app=138&f=JPEG?w=751&h=500"
                }
            }
        });
        vm.$mount('#app');//与DOM绑定展示页面
    </script>
</body>
</html>